package GameMain.View.GameOver
{
	import Engine.UIControl.Button;
	
	import flash.display.MovieClip;
	import flash.display.Sprite;
	
	public class GameCard extends Button
	{
		
		private var _starMC:MovieClip;
		private var _vipLightMC:MovieClip;
		private var _vipCardMC:MovieClip;
		private var _lightMC:MovieClip;
		private var _cardMC:MovieClip;
		
		public function GameCard(p_content:Sprite)
		{
			super(p_content);
			this._starMC = this._content["starMc"];
			this._vipLightMC = this._content["vipLightFrame"];
			this._vipCardMC = this._content["vipCardMc"];
			this._lightMC = this._content["lightFrame"];
			this._cardMC = this._content["cardMc"];
			
			this._starMC.visible = false;
			this._vipCardMC.visible = false;
			this._vipLightMC.visible = false;
			this._lightMC.visible = false;
			this._cardMC.gotoAndStop(1);
			
			this.setOnClickFun(onClick);
			
		}
		
		private function onClick():void
		{
			this._cardMC.gotoAndPlay(1);
			this._content.mouseEnabled = false;
		}
	}
}